<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/page/common/public.jspf"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="${path }/favicon.ico" />
<link href="${skin }/theme.css" rel="stylesheet" type="text/css" />
<link href="${skin }/member.css" rel="stylesheet" type="text/css" />
<script src="${path }/js/common/jquery1.10.2.min.js"></script>
<script src="${path }/js/common/helper.js?v=${v}"></script>
<script src="${path }/js/common/cookie.js?v=${v}"></script>
<title>会员中心-投资记录</title>
<style type="text/css">
body{background:#F5F5F5;}
.logo_main_bor{box-shadow: 0px 2px 6px rgba(2, 0, 0, 0.1);}
</style>
</head>
<body>
<c:import url="../../include/head.jsp"></c:import>
<c:import url="../../include/logo_menu.jsp">
	<c:param name="type" value="index"></c:param>
</c:import>

<div class="youarehere">
	<div class="localtion"><a href="${path }/">首页</a> » 投资记录</div>
</div>

<div class="wrapper auto_height">
<c:import url="../left.jsp"></c:import>
<div class="bodyright l" style="width:778px;">
<div class="line_EAEAEA auto_height" style="background: #fff;margin-bottom: 20px;">
<div style="padding: 12px">
	<div class="section query" style="display: ;">				
		<div class="thats">
			<div class="s_16">回款中</div>
		</div>
	</div>
</div>
	<ul class="account_item_title">
		<li style="text-align:center;width:96px;">标的名称</li>
		<li>年化率</li>
		<li>投资时间</li>
		<li>投资金额</li>
		<li>待收本金</li>
		<li>待收利息</li>
		<li>状态</li>
		<li style="width:92px;text-align:center;">合同</li>
	</ul>
	<c:choose> 
	     <c:when test="${fn:length(myInvestList) > 0}"> 
	      		<c:forEach items="${myInvestList}" var="invest" varStatus="vstatus">
					<c:choose>
			            <c:when test="${vstatus.index%2 == 0}">
			  				<ul class="account_item_title2">
								<li style="text-align:center;width:96px;">
									<a href="javascript:void(0);" onclick="myreceiveplan('${invest.borrowInfoId}','${invest.investUserId}')" class="d_blue">
										<c:choose> 
										     <c:when test="${fn:length(invest.borrowName) > 6}"> 
										      	<c:out value="${fn:substring(invest.borrowName, 0, 6)}..." /> 
										     </c:when> 
										     <c:otherwise> 
										      	<c:out value="${invest.borrowName}" /> 
										     </c:otherwise>
									    </c:choose>
									</a>
								</li>
								<li>${invest.borrowRate}% </li>
								<li><fmt:formatDate value="${invest.investTime}" type="both" pattern="yyyy/MM/dd"/></li>
								<li>
									<fmt:formatNumber value="${invest.investMoney/100}" type="currency" pattern="￥.00"/>
								</li>
								<li><fmt:formatNumber value="${invest.unReceiveBaseMoney/100}" type="currency" pattern="￥.00"/>
								</li>
								<li><fmt:formatNumber value="${invest.unReceiveInterestMoney/100}" type="currency" pattern="￥.00"/>
								</li>
								<li>回款中</li>
								<li style="width:92px;text-align:center;"><a href="#" class="d_blue">查看</a></li>
							</ul>
			            </c:when>
			            <c:otherwise>
			    			<ul class=account_item_title3>
								<li style="text-align:center;width:96px;">
									<a href="javascript:void(0);" onclick="myreceiveplan('${invest.borrowInfoId}','${invest.investUserId}')" class="d_blue">
										<c:choose> 
										     <c:when test="${fn:length(invest.borrowName) > 6}"> 
										      	<c:out value="${fn:substring(invest.borrowName, 0, 6)}..." /> 
										     </c:when> 
										     <c:otherwise> 
										      	<c:out value="${invest.borrowName}" /> 
										     </c:otherwise>
									    </c:choose>
									</a>
								</li>
								<li>${invest.borrowRate}%</li>
								<li><fmt:formatDate value="${invest.investTime}" type="both" pattern="yyyy/MM/dd"/></li>
								<li>
									<fmt:formatNumber value="${invest.investMoney/100}" type="currency" pattern="￥.00"/>
								</li>
								<li><fmt:formatNumber value="${invest.unReceiveBaseMoney/100}" type="currency" pattern="￥.00"/>
								</li>
								<li><fmt:formatNumber value="${invest.unReceiveInterestMoney/100}" type="currency" pattern="￥.00"/>
								</li>
								<li>回款中</li>
								<li style="width:92px;text-align:center;"><a href="#" class="d_blue">查看</a></li>
							</ul>
			            </c:otherwise>
			        </c:choose>
				</c:forEach>  
	     </c:when> 
	     <c:otherwise> 
	      		<div class="s_13">
					<div style="line-height: 60px; font-size: 16px; text-align: center;">暂无投资记录</div>
				</div>
	     </c:otherwise>
    </c:choose>
	<div class="clearfix section"></div>
	
<div class="paginations">
	<div class="page-bottom">
	</div>
</div>
        	
</div>
</div>
</div>
<script type="text/javascript">
	//查看收款计划
	function myreceiveplan (borrowInfoId, userId) {
		window.location.href = "<%=request.getContextPath()%>/repayment/myReceivePlanList.htm?borrowInfoId="+borrowInfoId+"&investUserId="+userId;
	}
</script>
<!-- 友情链接 -->
<c:import url="../../include/links.jsp"></c:import>

<!-- 版权所有 -->
<c:import url="../../include/copyright.jsp"></c:import>
</body>
</html>